<template>
  <a-modal
    title="添加快捷操作"
    :visible="visible"
    :confirm-loading="loading"
    @ok="() => { $emit('ok') }"
    @cancel="() => { $emit('cancel') }"
  >
    <a-form-model>
      <a-form-model-item label="快捷方式">
        <a-cascader :options="options" placeholder="Please select" @change="onChange" />
      </a-form-model-item>
    </a-form-model>
  </a-modal>
</template>

<script>
import { asyncRouterMap } from '@/config/router.config'
export default {
  props: {
    visible: {
      type: Boolean,
      required: true
    },
    loading: {
      type: Boolean,
      default: () => false
    }
  },
  mounted () {
    this.createRouterMap()
  },
  methods: {
    createRouterMap () {
      const map = asyncRouterMap[0].map(item => {

      })
      this.routerMap = map
    }
  }
}
</script>
